﻿#pragma once

#include "DataProductListCtrl.h"
#include "DataProductPropertyCtrl.h"
// CDataProductLibraryDialog 对话框

class CDataProductLibraryDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CDataProductLibraryDialog)

public:
	CDataProductLibraryDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CDataProductLibraryDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_DATA_PRODUCT_LIBRARY };
#endif

protected:
	CDataProductPropertyCtrl m_props;
	CDataProductListCtrl m_list;
	z_uint32	m_nProductCode;

protected:
	void	AdjustLayout();
	void	PopulateDataProductProperty(int nItem);


protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	
	virtual BOOL OnInitDialog();
	
	afx_msg void OnNMClickListData(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMDblclkListData(NMHDR *pNMHDR, LRESULT *pResult);
};
